﻿//window.onload = function(){
//	var banner = document.getElementsByClassName("banner")[0];
//	var left = document.getElementsByClassName("prev")[0];
//	var right = document.getElementsByClassName("next")[0];
//	
//	显示左右按钮
//	banner.onmouseover = function(){
//		left.style.display = "block";
//		right.style.display = "block";
//	}
//
//	隐藏左右按钮
//	banner.onmouseout = function(){
//		left.style.display = "none";
//		right.style.display = "none";
//	}
//
//}
$(document).ready(function(){
	
	//显示左右按钮
	$(".banner").mouseover(
		function(){
			$(".prev").css({"display":"block"});
			$(".next").css({"display":"block"});
		}
	);
	
	//隐藏左右按钮
	$(".banner").mouseout(
		function(){
			$(".prev").css({"display":"none"});
			$(".next").css({"display":"none"});
		}
	);

	//改变img的src
	$(".ssk a img").mouseover(
		function(){
			$(this).attr("src","img/sskb.png");
		}
	);
	
	$(".ssk a img").mouseout(
		function(){
			$(this).attr("src","img/ss.png");
		}
	);


});
	


	
	
	

